Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parser: Fix Qualys Parser Mitigation Date Issue #9888

Merged
merged 1 commit into from
Apr 30, 2024

Conversation

MarianG
Copy link
Contributor

@MarianG MarianG commented Apr 8, 2024

⚠️ Note on feature completeness ⚠️

We are narrowing the scope of acceptable enhancements to DefectDojo in preparation for v3. Learn more here:
https://github.com/DefectDojo/django-DefectDojo/blob/master/readme-docs/CONTRIBUTING.md

Description

The Parser used a Date Field for the mitigation_date, however… the Finding-Model requires a DateTime Field which is not compatible and imports are getting canceled. The fix is simply to remove the "to_date" conversion, because we do not want to change the Finding Model

Test results

Ideally you extend the test suite in tests/ and dojo/unittests to cover the changed in this PR.
Alternatively, describe what you have and haven't tested.

Documentation

Please update any documentation when needed in the documentation folder)

Checklist

This checklist is for your information.

  • Make sure to rebase your PR against the very latest dev.
  • Features/Changes should be submitted against the dev.
  • Bugfixes should be submitted against the bugfix branch.
  • Give a meaningful name to your PR, as it may end up being used in the release notes.
  • Your code is flake8 compliant.
  • Your code is python 3.11 compliant.
  • If this is a new feature and not a bug fix, you've included the proper documentation in the docs at https://github.com/DefectDojo/django-DefectDojo/tree/dev/docs as part of this PR.
  • Model changes must include the necessary migrations in the dojo/db_migrations folder.
  • Add applicable tests to the unit tests.
  • Add the proper label to categorize your PR.

… the Finding-Model requires a DateTime Field which is not compatible and imports are getting canceled
@github-actions github-actions bot added the parser label Apr 8, 2024
Copy link

dryrunsecurity bot commented Apr 8, 2024

Hi there 👋, @DryRunSecurity here, below is a summary of our analysis and findings.

DryRun Security Status Findings
Secrets Analyzer (beta) 0 findings
Authn/Authz Analyzer 0 findings
Configured Codepaths Analyzer 0 findings
Sensitive Files Analyzer 0 findings

Note

🟢 Risk threshold not exceeded.

Tip

Get answers to your security questions. Add a comment in this PR starting with @DryRunSecurity. For example...

@dryrunsecurity What are common security issues with web application cookies?

Powered by DryRun Security

Copy link
Contributor

@mtesauro mtesauro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved

@MarianG
Copy link
Contributor Author

MarianG commented Apr 16, 2024

Hi,
can we get one more final approval ;) ?

@MarianG
Copy link
Contributor Author

MarianG commented Apr 29, 2024

Guys, we are still stuck with 3 approvals :/

@mtesauro mtesauro merged commit 85f7804 into DefectDojo:dev Apr 30, 2024
121 checks passed
dogboat pushed a commit to dogboat/django-DefectDojo that referenced this pull request May 6, 2024
… the Finding-Model requires a DateTime Field which is not compatible and imports are getting canceled (DefectDojo#9888)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants